import Vue from 'vue'
import Router from 'vue-router'
import {
  asyncRouter
} from '@/router/contentManagement'
import {
  workRouter
} from '@/router/workBench'
import {
  userRouter
} from '@/router/userRights'
Vue.use(Router)

export default new Router({
      routes: [{
        path: '/login',
        name: 'login',
        component: () => import('@/views/login'),
        meta: {
          title: '登录',
        },
      }, {

          path: '/log',
          name: 'log',
          component: () => import('@/components/ueditor'),
          meta: {
            title: '登录',
          },
        }, {
          path: '/',
          name: 'Home',
          redirect: '/workBench/frontPage',
          component: () => import('@/views/home'),
          meta: {
            title: '首页',
          },
          children: [asyncRouter, workRouter, userRouter]
        }]
      })
